public class ArrayFound {


public static void main(String[] args) {

int[] arrayRand = {3, 7, 7, 9, 3, 9, 7, 9, 3, 7};
int n = 0,
      m = 0,
      l = 0;

for (int i = 0; i < arrayRand.length; i++) {

      if(arrayRand[i]  == 3) {
        n++;
      }
      else if(arrayRand[i]  == 7) {
        m++;
      }
      else if(arrayRand[i]  == 9) {
        l++;
      }

}

System.out.printf("Sum 3: %d\nSum 7: %d\nSum 9: %d\n", n, m, l);

}


}
